package com.smh.genericity.fanxingMethod;

/**
 * @description: 泛型方法
 * @author: shenmhk
 * @create: 2020-10-21 14:49
 */
public class genericMethod {

    public <T> T genericMethod(Class<T> tClass) throws InstantiationException,IllegalAccessException{
        T instance = tClass.newInstance();
        return instance;
    }

}
